
<%@ include file="/common/taglibs.jsp"%>
<!--分页查询共用的页面-->
<%@ include file="/common/common.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<script>
$().ready(function() {
 $("#entityForm").validate();
 Utility.setComboboxDefaultValue("mapType", '${entity.mapType}');
 Utility.setComboboxDefaultValue("refreshInterval", '${entity.refreshInterval}');
 Utility.setComboboxDefaultValue("checkValidateCode", '${entity.checkValidateCode}');
 Utility.setComboboxDefaultValue("showVehicleOnMap", '${entity.showVehicleOnMap}');
 Utility.setComboboxDefaultValue("showDepNameOnMap", '${entity.showDepNameOnMap}');
 Utility.setComboboxDefaultValue("displayStateType", '${entity.displayStateType}');
 Utility.setComboboxDefaultValue("vehicleIconType", '${entity.vehicleIconType}');
});
</script>
 <BODY>


<form id="entityForm" name="entityForm"  action="<%=ApplicationPath%>/systemConfig/save.action" method="post">
<input type="hidden" name="entityId"
					value="${entity.entityId}"/>


		<table  width="100%"  class="TableBlock">
		<tr>
						<td colspan="2" style="font-weight: bold; background: #EFEFEF;" height="25">
						 配置信息:
								<input type="submit" class="button gray medium" value="保存">
						<span class="MessageFromServer">${message}</span>
						</td>
					</tr>
					<tr>
				<td width="200">软件标题:</td>
				<td align="left"><input type="text" name="systemTitle" value="${entity.systemTitle}" id="systemTitle" size=50 class="required"/>
			</tr>
				<tr>
				<td>地图中心默认经度:</td>
				<td align="left"><input type="text" name="initLng"  value="${entity.initLng}" id="initLng" class="required number"/></td>
			</tr>
				<tr>
				<td>地图中心默认纬度:</td>
				<td align="left"><input type="text" name="initLat" value="${entity.initLat}" id="initLat" class="required number"/></td>
			</tr>
<tr>
				<td>地图默认缩放比例:</td>
				<td align="left"><input type="text" name="initZoomLevel" value="${entity.initZoomLevel}" id="initZoomLevel" class="required digits"/></td>
			</tr>
			
			<tr>
				<td>系统默认地图
				</td>
				<td><select name="mapType" id="mapType" style="width:150px;">
						<option value="baidu" selected>百度地图</option>
						<option value="amap" selected>高德地图</option>
					   <!-- <option value="google" >中文谷歌地图</option>-->
						<option value="smart">四维地图</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>smart earth四维地图密钥:</td>
				<td align="left"><input type="text" name="smartKey"  value="${entity.smartKey}" id="smartKey"/></td>
			</tr>
			
			<tr>
				<td>百度地图key:</td>
				<td align="left"><input type="text" name="baiduKey"  value="${entity.baiduKey}" id="baiduKey" size=50 class="required"/></td>
			</tr>
			<tr>
				<td>百度地图后台WebService服务key:</td>
				<td align="left"><input type="text" name="baiduWebServiceKey"  value="${entity.baiduWebServiceKey}" id="baiduWebServiceKey" size=50 class="required"/></td>
			</tr>
			<tr>
				<td>高德地图key:</td>
				<td align="left"><input type="text" name="amapKey"  value="${entity.amapKey}" id="amapKey" size=50 class="required"/></td>
			</tr>
			<tr>
				<td>高德地图后台WebService服务key:</td>
				<td align="left"><input type="text" name="amapWebServiceKey"  value="${entity.amapWebServiceKey}" id="amapWebServiceKey" size=50 class="required"/></td>
			</tr>
			<tr>
				<td>地图车辆图标类型
				</td>
				<td>
					<select name="vehicleIconType" id="vehicleIconType" style="width:150px;">
						<option value="car" selected>汽车图标</option>
						<option value="arrow">箭头图标</option>
					</select>
				</td>
			</tr>

			<tr>
				<td>地图车辆标签显示部门名称
				</td>
				<td>
					<select name="showDepNameOnMap" id="showDepNameOnMap" style="width:150px;">
						<option value="true" selected>显示</option>
						<option value="false">不显示</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>报警刷新间隔:</td>
				<td align="left"><input type="text" name="alarmInterval"  value="${entity.alarmInterval}" id="alarmInterval"  value=20 class="required digits"/>(秒)</td>
			</tr>
			<tr>
				<td>报警时显示车辆在地图中心
				</td>
				<td>
					<select name="showVehicleOnMap" id="showVehicleOnMap" style="width:150px;">
						<option value="yes" selected>启用</option>
						<option value="no">停用</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>视频服务器IP地址:</td>
				<td align="left"><input type="text" name="videoServerIp"  value="${entity.videoServerIp}" id="videoServerIp"  value=20 class="required"/></td>
			</tr>
			<tr>
				<td>视频服务器Tcp端口:</td>
				<td align="left"><input type="text" name="videoServerTcpPort"  value="${entity.videoServerTcpPort}" id="videoSeverTcpPort"  value=20 class="required digits"/></td>
			</tr>
			<tr>
				<td>视频服务器Udp端口:</td>
				<td align="left"><input type="text" name="videoServerUdpPort"  value="${entity.videoServerUdpPort}" id="videoSeverUdpPort"  value=20 class="required digits"/></td>
			</tr>

		<tr>
			<td>视频拉流端口:</td>
			<td align="left"><input type="text" name="rtmpPort"  value="${entity.rtmpPort}" id="rtmpPort"  value=20 class="required digits"/></td>
		</tr>


			<tr>
				<td>实时数据刷新间隔:</td>
				<td align="left"><select name="refreshInterval" id="refreshInterval">
					<option value="2">2</option>
				   <option value="5">5</option>
				   <option value="10">10</option>
				   <option value="15">15</option>
				   <option value="20">20</option>
				   <option value="25">25</option>
				   <option value="30">30</option>
				   <option value="35">35</option>
				   <option value="40">40</option>
				   <option value="45">45</option>
				   <option value="60">60</option>
				</select>(秒)</td>
			</tr>
			<!--
			<tr>
				<td>最长离线天数:</td>
				<td align="left"><select name="maxOfflineDays" id="maxOfflineDays">
				   <option value="0">不限制</option>
				   <option value="1">1</option>
				   <option value="2">2</option>
				   <option value="3">3</option>
				   <option value="4">4</option>
				   <option value="5">5</option>
				   <option value="6">6</option>
				   <option value="7">7</option>
				   <option value="8">8</option>
				   <option value="9">9</option>
				   <option value="10">10</option>
				</select>(天) 超过后将报警</td>
			</tr>
			-->
			<tr>
				<td>实时状态显示类型
				</td>
				<td><select name="displayStateType" id="displayStateType" style="width:150px">
    <option value="door">显示Acc状态</option>
    <option value="braker" selected="selected">显示刹车转向状态</option>
</select>
</td>
			</tr>
			
			<tr>
				<td>登录验证码
				</td>
				<td>
				<select name="checkValidateCode" id="checkValidateCode" style="width:150px;">
					<option value="yes" selected>启用</option>
					<option value="no">停用</option>
				</select>

				</td>
			</tr>
		
			<tr>
						<td colspan="2" align="center">
								<input type="submit" class="button gray medium" value="保存">
							(保存完毕后用户重新登录才能生效)
						</td>
					</tr>


</table>
	</form>